<%@ Page Language="C#" MasterPageFile="~/MainPage.master" AutoEventWireup="true"
    CodeFile="Suppliers.aspx.cs" Inherits="Suppliers" Title="Suppliers" %>

<asp:Content ID="webSuppliersTitle" ContentPlaceHolderID="cphTitle" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                Suppliers
            </h1>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="Home.aspx">Home</a> </li>
                <li class="active"><i class="fa fa-file"></i>Suppliers </li>
            </ol>
        </div>
    </div>
</asp:Content>
<asp:Content ID="webSuppliers" ContentPlaceHolderID="cphMainPage" runat="Server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Untitled Page</title>
        <link href="css/CSSGridView1.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            .style1
            {
                width: 434px;
            }
            .style2
            {
                width: 111px;
            }
            .style3
            {
                width: 407px;
            }
        </style>
    </head>
    <body>
        <form id="form1">
        <div>
            <table>
                <tr>
                    <td>
                        <table border="0" cellpadding="1" cellspacing="1" width="100%">
                            <tr>
                                <td class="style2">
                                    Supplier ID:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtID" runat="server" Width="255px" Enabled="False" 
                                        MaxLength="3060"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    Company name:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtCompanyName" runat="server" Width="255px" MaxLength="40"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCompanyName"
                                        ErrorMessage="Full name require" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    Contact name:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtContactName" runat="server" Width="255px" MaxLength="30"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContactName"
                                        ErrorMessage="Full name require" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    Contact tittle:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtContactTittle" runat="server" Width="255px" MaxLength="30"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtContactTittle"
                                        ErrorMessage="Cannot be blank" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style2">
                                    Address:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtAddress" runat="server" Width="255px" MaxLength="60"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAddress"
                                        ErrorMessage="Cannot be blank" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                        <table border="0" cellpadding="1" cellspacing="1">
                            <tr>
                                <td>
                                    City:
                                </td>
                                <td class="style3">
                                    <asp:TextBox ID="txtCity" runat="server" Width="255px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCity"
                                        ErrorMessage="Full name require" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Region:
                                </td>
                                <td class="style3">
                                    <asp:TextBox ID="txtRegion" runat="server" Width="255px" 
                                        ontextchanged="txtRegion_TextChanged"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Postal code:
                                </td>
                                <td class="style3">
                                    <asp:TextBox ID="txtPostalCode" runat="server" Width="255px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                        ControlToValidate="txtPostalCode" ErrorMessage="5 Number require" 
                                        ValidationExpression="\d{5}?"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Country:
                                </td>
                                <td class="style3">
                                    <asp:DropDownList ID="DDLCountry" runat="server" Width="255px" OnSelectedIndexChanged="DDLCountry_SelectedIndexChanged">
                                        <asp:ListItem>USA</asp:ListItem>
                                        <asp:ListItem>UK</asp:ListItem>
                                        <asp:ListItem>Japan</asp:ListItem>
                                        <asp:ListItem>Spain</asp:ListItem>
                                        <asp:ListItem>Australia</asp:ListItem>
                                        <asp:ListItem>Brazil</asp:ListItem>
                                        <asp:ListItem>Sweden</asp:ListItem>
                                        <asp:ListItem>Germany</asp:ListItem>
                                        <asp:ListItem>Singapore</asp:ListItem>
                                        <asp:ListItem>Italy</asp:ListItem>
                                        <asp:ListItem>France</asp:ListItem>
                                        <asp:ListItem>Denmark</asp:ListItem>
                                        <asp:ListItem>Netherlands</asp:ListItem>
                                        <asp:ListItem>Cannada</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Phone:
                                </td>
                                <td class="style3">
                                    <asp:TextBox ID="txtPhone" runat="server" Width="255px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="txtPhone" ErrorMessage="(000) 999-9999" 
                                        ValidationExpression="((\(\d{1}?\d{1}?\d{1}\) )?)\d{3}-\d{4}"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Fax:
                                </td>
                                <td class="style3">
                                    <asp:TextBox ID="txtFax" runat="server" Width="255px" MaxLength="24"></asp:TextBox>
                                </td>
                            </tr>
                            
                        </table>
                    </td>
                </tr>
                <tr>
                <td>
                                    &nbsp;</td>
                <td>
                    &nbsp;<tr>
                                
                                <td>
                                    <asp:Button ID="btnNew" runat="server" Text="New" Width="65px" 
                                        OnClick="btnNew_Click" CausesValidation="False" />
                                    <asp:Button ID="btnAdd" runat="server" Text="Add" Width="65px" OnClick="btnAdd_Click" />
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="65px" OnClick="btnUpdate_Click" />
                                    <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="65px" 
                                        OnClick="btnDelete_Click" CausesValidation="False" />
                                    <asp:Button ID="btnReload" runat="server" CausesValidation="False" 
                                        onclick="btnReload_Click" Text="Reload" />
                                </td>
                                <td>
                                    <asp:Button ID="btnSearch" runat="server" Text="Search" Width="65px" OnClick="btnSearch_Click"
                                        CausesValidation="False" Style="height: 26px" />
                                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                                    <asp:DropDownList ID="DDLSearch" runat="server" Width="255px">
                                        <asp:ListItem>Company Name</asp:ListItem>
                                        <asp:ListItem>Contact Name</asp:ListItem>
                                        <asp:ListItem>Contact Tittle</asp:ListItem>
                                        <asp:ListItem>Address</asp:ListItem>
                                        <asp:ListItem>City</asp:ListItem>
                                        <asp:ListItem>Region</asp:ListItem>
                                        <asp:ListItem>PostalCode</asp:ListItem>
                                        <asp:ListItem>Country</asp:ListItem>
                                        <asp:ListItem>Phone</asp:ListItem>
                                        <asp:ListItem>Fax</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                </td>
                </tr>
                
                
                <tr>
                    <asp:GridView ID="gvSupplier" runat="server" OnSelectedIndexChanged="gvEmployees_SelectedIndexChanged"
                        OnPageIndexChanging="gvEmployees_PageIndexChanging" OnSelectedIndexChanging="gvEmployees_SelectedIndexChanging"
                        CssClass="Grid" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr">
                    </asp:GridView>
                </tr>
            </table>
        </div>
        </form>
    </body>
    </html>
</asp:Content>
